from distutils.core import setup
import glob

scripts_requested = set(['slurm_manage_jobs.py',
                         ])

scripts_that_exist = set(glob.glob('*.py')) | set(glob.glob('*.sh')) | set(glob.glob('scripts/*'))


scripts_to_install = list(scripts_requested & scripts_that_exist)
scripts_left_out = list((scripts_requested - scripts_that_exist))
scripts_left_out.sort()

for script in scripts_left_out:
    print "{0} requested but not present; omitting...".format(script)
    

setup(name='slurm_utils',
      version='0.1.0',
      description='Utilities for running jobs on a SLURM queue',
      author='Craig Bookwalter',
      author_email='craig.bookwalter@pnnl.gov',
      scripts=scripts_to_install,
      )
